package com.demo.design.behavioral.command;

public class LowanTV {

    private int channelNum = 0;

    private int volume = 0;

    public void changeChannelNum() {
        channelNum += 1;
        if (channelNum == 49) {
            channelNum = 1;
        }
        System.err.println("lowanTV换台到：" + channelNum);
    }

    public void changeVolume() {
        volume += 1;
        if (volume == 100) {
            volume = 1;
        }
        System.err.println("lowanTV当前音量为：" + channelNum);
    }
}
